﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ImageSettingCtl.ascx.cs" Inherits="VitCode.Web.UserControls.ImageSettingCtl" %>
<table border="0px">
  <tr>
    <td><asp:FileUpload id="upImage" runat="server" class="btn_mouseout" Height="20px" 
    Width="200px"/></td>
    <td rowspan="2" align="left"><asp:Image ID="Image1" runat="server" Width="120px" Height="150px"  style="margin-left:-2px" Visible="false" ImageUrl="~/Images/hotno2[1].gif"/></td>
  </tr>
  <tr>
    <td>
    <asp:Label ID="Label1" ForeColor="Gray" Text="圖片大小建議(120*150)" runat="server" Font-Size="12px"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:Button ID="btnUploadImage" runat="server" Text="上傳" class="btn_mouseout"  OnClientClick="return CheckNull()"
    Height="20px" Width="63px" onclick="button1_Click" />
    </td>
  </tr>
</table>

<link href="../ScriptFiles/CSS/Main.css" type="text/css" rel="stylesheet"/>
  <script src="../ScriptFiles/JS/jquery.js" type="text/javascript"></script>
<script type="text/javascript">
    function CheckNull() {
         var a = $("#ObjPro_ImagePath_upImage");
        if (a == null)
            return true;
        if (a.val() == "") {
            alert("請選擇圖片");
            return false;
        } 
       return true;
       
    }
</script> 
